home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 1
/
Cream of the Crop 1.iso
/
CAD
/
LISP04.ARJ
/
BALLOON.LSP
next >
Wrap
Text File
|
1989-05-07
|
860b
|
30 lines
(Vmon) ;Virtual Memory On
;
; 13. Part identifier (balloonc)
;13. Draws part identifier - a balloon containing a
; number, then a leader to the object.
(Defun C:Balloonc (/ P1 P2 P3 P4 A)
(Setq DS (Getreal "\nEnter the Dimscale: "))
(Setvar "Cmdecho" 0)
(Setq P1 (Getpoint "\nFrom point: "))
(Setq P2 (Getpoint "\nTo point: "))
(If (<= (Car P2) (Car P1))
(Setq A (* -0.25 DS)) (Setq A (* 0.25 DS))
)
(Setq P3 (List (+ (Car P2) A) (Cadr P2)))
(Setq P4 (List (+ (Car P3)(/ A 2)) (Cadr P3)))
(Command "Layer" "S" "4" "")
(Command "Dim1" "Leader" P1 P2 P3 "" "")
(Setq A "Cballoon")
(Command "Insert" A P4 DS "" "0")
)
;19. Error.
(Defun *error* (st)
(Princ "Error: ")
(Princ st)
(Terpri))